<?php

use Faker\Generator as Faker;

$factory->define(App\Admin::class, function (Faker $faker) {
    return [
//        $faker是自动随机造数据
        'name' => $faker->name,
        'nickname' => $faker->name,
        'password' => bcrypt("admin888"), // secret
    ];
});
